package com.woniu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author hyl
 * @since 2022-08-28
 */
@TableName("expense_detail")
@Getter
@Setter
@ToString
public class ExpenseDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "exp_detail_id", type = IdType.AUTO)
    private Integer expDetailId;
    //新增字段uid
    @TableField(value = "user_id",property = "user.userId")
    private User user;

//    private Integer expId;
    @TableField(value = "exp_id",property = "expense.expId")
    private Expense expense;

    @TableField(value = "bank_id",property = "bankId")
    private Integer bankId;

//    private Integer deptId;
    @TableField(value = "dept_id",property = "deptId")
    private Dept dept;

    @TableField(value = "exp_date",property = "expDate")
    private String expDate;

    @TableField(value = "exp_date",property = "expPrice")
    private BigDecimal expPrice;

    private String expCredential;

    private String expFeedback;

    private String expDetailStatus;

    //为了方便查询设计的起始时间，结束时间
    @TableField(exist = false)
    private String expEndTime;

    @TableField(exist = false)
    private String expStartTime;

}
